package cannot.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cannot.mapper.ShowIndexMapper;
import cannot.pojo.ShowIndex;
import cannot.service.ShowIndexService;

@Service
public class ShowIndexServiceImpl implements ShowIndexService {

	@Autowired
	ShowIndexMapper showIndexMapper;
	public void updateShowIndex(ShowIndex showIndex) {
		showIndexMapper.updateByPrimaryKey(showIndex);
	}

	public int insertShowIndex(ShowIndex showIndex) {
		return showIndexMapper.insert(showIndex);
	}

	public List<ShowIndex> listShowIndexs() {
		return showIndexMapper.listShowIndexs();
	}

}
